package com.zking.ssm.DYM.service;

import com.zking.ssm.DYM.model.HotelRoom;
import com.zking.ssm.util.PageBean;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description
 * @Author XXXXX
 * @Date 2021/01/19 18:14
 */
@Transactional
public interface IHotelRoomService {
    int deleteByPrimaryKey(Integer id);

    int insert(HotelRoom record);

//    @Cacheable("hotelRoom")
    HotelRoom selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(HotelRoom record);

    @Transactional(readOnly = true)
    List<HotelRoom> list(HotelRoom record, PageBean pageBean);
}
